﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Wicresoft.SMS.Data;
using System.Web.Mvc;

namespace Wicresoft.SMS.Web
{

    public class HistoryReportModel
    {
        public string ImageSource { get; set; }
        public DateTime StartTime { get; set; }
        public DateTime EndTime { get; set; }
        public queryFrequence Frequence { get; set; }
    }

    public class GroupReportModel
    {
        public string ImageSource { get; set; }
        public DateTime StartTime { get; set; }
        public DateTime EndTime { get; set; }
        public int MaxShow { get; set; }
    }

    public class UserReportModel
    {
        public string ImageSource { get; set; }
        public DateTime StartTime { get; set; }
        public DateTime EndTime { get; set; }
        public int MaxShow { get; set; }
        public int GroupId { get; set; }
    }

    public class OverViewReportModel
    {
        public string StartDate { get; set; }
        public string TotalRunTime { get; set; }
        public int TotalMessage { get; set; }
        public double TotalMoney { get; set; }
    }

    public static class SelectFrequenc
    {
        public static List<SelectListItem> SelectItems()
        {
            List<SelectListItem> Items = new List<SelectListItem>();
            SelectListItem item = new SelectListItem();
            item.Text = "Day";
            item.Value = "day";
            Items.Add(item);
            item = new SelectListItem();
            item.Text = "Week";
            item.Value = "week";
            Items.Add(item);
            item = new SelectListItem();
            item.Text = "Mouth";
            item.Value = "mouth";
            Items.Add(item);
            item = new SelectListItem();
            item.Text = "Year";
            item.Value = "year";
            Items.Add(item);
            return Items;
        }

        public static List<SelectListItem> MaxShowItems()
        {
            List<SelectListItem> Items = new List<SelectListItem>();
            for (int i = 1; i <= 10; i++)
            {
                SelectListItem item = new SelectListItem();
                item.Text = i.ToString();
                item.Value = i.ToString();
                Items.Add(item);
            }
            return Items;
        }
        
        
    }

}